<!--edit page create by pionner at Mon Dec 08 18:31:20 CST 2008-->
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	<%Random rand=new Random();
     int rr=rand.nextInt(1);     
	%>
	<script language="javascript">
	function preview()
	{
	document.all.addform.elements.btn.value="preview";	
document.all.addform.submit();
alert("正在生成预览！");
window.open('../../main<%out.print(rr);%>.jsp');

}

function change()
	{
	document.all.addform.elements.btn.value="change";
document.all.addform.submit();
}
	</script>
	
	<base href="<%=basePath%>">
		<title>Process</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
		<link rel="stylesheet" href="css/style.css">
		<link rel='stylesheet' type='text/css' href='css/table.css'>
			<link href="<%=path%>/template/css.css" rel="stylesheet" type="text/css">
	<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css">
		<script src='js/comm.js'></script>
	</head>
	<body>
		<table width="200" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="90"><img src="images/loc-head.jpg" width="90" height="24"></td>
				<td valign="middle" nowrap background="images/loc-bg.jpg">修改标题图片</td>
				<td width="12"><img src="images/loc-tail.jpg" width="12" height="24"></td>
			</tr>
		</table><br>
		
		<s:form name="addform"  action="processTitle.action" enctype="multipart/form-data">
			<table width='60%' border='0' cellspacing='1' class="ipttable">				
				<s:textfield name="title" label="标题文字"/>
				<tr>
				<td>
				标题背景图片:
				</td>
				<td>
				<input type='file' name="img" style="width:198px;" class="input130"/>（建议大小1001*97）							
				</td>
				</tr>
				<tr>
				<td colspan="2" align="center">
				<input type="hidden" name="btn" value=""/>
				<input type="hidden" name="seed" value="<%out.print(rr);%>"/>
				<input type="button" onclick="preview();" value="预览" class="submitbtn">
			 
				<input type="button" onclick="change();" value="提交" class="submitbtn">
			  <input type="reset" class="resetbtn" value="重置">
			  </td>
			  </tr>
			</table>
		</s:form>
	</body>
</html>
